a11y: Mark cells as defunct when deleting them
authorBenjamin Otte <otte@redhat.com>
Sun, 12 Feb 2012 15:44:21 +0000 (16:44 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 Feb 2012 15:45:14 +0000 (16:45 +0100)
Just unreffing isn't enough, atk-bridge might have a reference to the
object still.

gtk/a11y/gtktreeviewaccessible.c

index 2807e4158d4cdfa7078e1992f52e7ef201503c3b..8bec29102bb024ef542434356057805f14c866f7 100644 (file)
@@ -97,6 +97,7 @@ gtk_tree_view_accessible_get_data_quark (void)
 static void
 cell_info_free (GtkTreeViewAccessibleCellInfo *cell_info)
 {
+  gtk_accessible_set_widget (GTK_ACCESSIBLE (cell_info->cell), NULL);
   g_object_unref (cell_info->cell);
 
   g_free (cell_info);